package com.pz.minioproxy.constant;

import lombok.Getter;

@Getter
public enum MinioCodeEnum {
    MultipartException(50001, "MultipartException-"),
    INPUTIO_EXCEPTION(50002, "stream exception-"),
    PUT_OBJECT_EXCEPTION(50003, "put objection to minio exception-"),
    UPLOAD_FILENAME_EMPTY(50004, "origin file name is empty!"),
    GET_RRL_EXCEPTION(50005, "get object url fail--");

    private final int code;
    private final String msg;
    //
    MinioCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
